import request from '@/utils/request'

// 查询箱变容量详情申请列表
export function listNyTransAllow(query) {
  return request({
    url: '/energy/nyTransAllow/list',
    method: 'get',
    params: query
  })
}

// 查询箱变容量申请列表
export function listNyTransAllowEn(query) {
  return request({
    url: '/energy/nyTransAllow/listEn',
    method: 'get',
    params: query
  })
}

// 查询箱变容量申请详细
export function getNyTransAllow(id) {
  return request({
    url: '/energy/nyTransAllow/' + id,
    method: 'get'
  })
}

// 新增箱变容量申请
export function addNyTransAllow(data) {
  return request({
    url: '/energy/nyTransAllow',
    method: 'post',
    data: data
  })
}

// 修改箱变容量申请
export function updateNyTransAllow(data) {
  return request({
    url: '/energy/nyTransAllow',
    method: 'put',
    data: data
  })
}

// 删除箱变容量申请
export function delNyTransAllow(id) {
  return request({
    url: '/energy/nyTransAllow/' + id,
    method: 'delete'
  })
}
